package com.property.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.property.entity.Owner;

public interface OwnerDao {
	void addOwner(Owner owner); 
	List<Owner> getAll();
	List<Owner> getByStatus(String status);
	List<Owner> getKeyWord(@Param("uid") int userId,@Param("name")String name,@Param("tower")String tower,@Param("houseIN")String houseIN );
	Owner getbyId(int id);
	Owner getbyIds(@Param("id")int id,@Param("comid")int comid);
	void  updateOwner(Owner owner);
	void  updateOwners(Owner owner);
	List<Owner> getListId(int cid);
	List<Owner> getKey(@Param("uid") int userId,@Param("name")String name,@Param("tower")String tower,@Param("houseIN")String houseIN,@Param("startIndex")int startIndex,@Param("pageSize")int pageSize );
	int rowCount(@Param("uid") int userId,@Param("name")String name,@Param("tower")String tower,@Param("houseIN")String houseIN);
	Owner getOwner(int id);
	List<Owner> getownerhouseList(@Param("uid") int uid);
	Owner getownerhousedateil(int oid);
	void deleteOwner(@Param("oid")int oid);
	void addOwnerhouse(Owner owner);
	void delOwner(int cid);//删除指定小区业主
	int getOwn(@Param("id")int id,@Param("tower")String tower,@Param("houseIN")String houseIN);
}
